/*
 * www.yiji.com Inc.
 * Copyright (c) 2015 All Rights Reserved
 */

/*
 * 修订记录:
 * chenlin@yiji.com 2015-12-07 20:37 创建
 *
 */
package com.zerone.pay.trade.web.controller.weixin;

import javax.servlet.http.HttpServletRequest;

import org.sword.wechat4j.WechatSupport;

/**
 * 微信处理监听
 * @author chenlin@yiji.com
 */
public class MumWechatListener extends WechatSupport {
	
	private WechatProcessProvider processProvider;
	
	public MumWechatListener(HttpServletRequest request, WechatProcessProvider processProvider) {
		super(request);
		this.processProvider = processProvider;
	}
	
	@Override
	protected void onText() {
		String key = wechatRequest.getContent();
		
		String result = processProvider.processor(key).process(wechatRequest);
		responseText(result);
	}
	
	@Override
	protected void onImage() {
		String key = wechatRequest.getContent();
		
		String result = processProvider.processor(key).process(wechatRequest);
		responseImage(result);
	}
	
	@Override
	protected void onVoice() {
		String key = wechatRequest.getContent();
		
		String result = processProvider.processor(key).process(wechatRequest);
		responseVoice(result);
	}
	
	@Override
	protected void onVideo() {
	}
	
	@Override
	protected void onShortVideo() {
	
	}
	
	@Override
	protected void onLocation() {
	
	}
	
	@Override
	protected void onLink() {
	
	}
	
	@Override
	protected void onUnknown() {
	
	}
	
	@Override
	protected void click() {
	
	}
	
	@Override
	protected void subscribe() {
		String result = processProvider.processor("subcritbe_processor").process(wechatRequest);
		responseText(result);
	}
	
	@Override
	protected void unSubscribe() {
		String result = processProvider.processor("unsubcritbe_processor").process(wechatRequest);
		responseText(result);
	}
	
	@Override
	protected void scan() {
	
	}
	
	@Override
	protected void location() {
	
	}
	
	@Override
	protected void view() {
	
	}
	
	@Override
	protected void templateMsgCallback() {
	
	}
	
	@Override
	protected void scanCodePush() {
	
	}
	
	@Override
	protected void scanCodeWaitMsg() {
	
	}
	
	@Override
	protected void picSysPhoto() {
	
	}
	
	@Override
	protected void picPhotoOrAlbum() {
	
	}
	
	@Override
	protected void picWeixin() {
	
	}
	
	@Override
	protected void locationSelect() {
	
	}
	
	@Override
	protected void kfCreateSession() {
	
	}
	
	@Override
	protected void kfCloseSession() {
	
	}
	
	@Override
	protected void kfSwitchSession() {
	
	}
}
